package com.zxycloud.controller;


import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

@RestController
@RequestMapping("/test")
public class TestController {
	
	
	/**
	 * 测试springMVC接口
	 * SpringMVC工作原理
https://www.cnblogs.com/fengquan-blog/p/11161084.html
Debug断点查看源码入口
https://blog.csdn.net/weixin_42490383/article/details/107018765
	 * @param adapterName
	 * @return
	 */
	@RequestMapping("/1")
	public ModelAndView hello(@RequestParam(value="adapterName", defaultValue="0")String adapterName){
		ModelAndView model = new ModelAndView();
		model.addObject("datas", "hello");
		model.setViewName("hello");		
		return model;
	}
	

}
